﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace CodeCamp.Models.UserMailer
{
    public class MailBaseModel
    {
        /// <summary>
        /// Used for substitutions
        /// </summary>
        public const string lineBreak = @"<br />
";

        /// <summary>
        /// Id Value from EmailItem
        /// </summary>
        public Nullable<int> EmailItemId { get; set; }

        [MaxLength(1024)]
        public string CustomContent1 { get; set; }

        [MaxLength(1024)]
        public string CustomContent2 { get; set; }

        [Required]
        [MaxLength(192)]
        public string EmailTo { get; set; }

        [Required]
        [MaxLength(128)]
        public string FirstName { get; set; }

        [MaxLength(128)]
        public string LastName { get; set; }

        /// <summary>
        /// EMail will be "From" the address configured in the system.
        /// Set ReplyTo so a reply will go to the appropriate address.
        /// </summary>
        [MaxLength(192)]
        public string ReplyToAddress { get; set; }

        [Required]
        [MaxLength(256)]
        public string Salutation { get; set; }

        [Required]
        [MaxLength(192)]
        public string Subject { get; set; }
    }
}